package com.cy.pj.goods.service;

import com.cy.pj.goods.dao.GoodsDao;
import com.cy.pj.goods.pojo.Goods;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Slf4j
@Service
public class GoodsDaoImpl implements GoodsService {
    @Autowired
    private GoodsDao goodsDao;
    @Override
    public List<Goods> findById(Integer id) {
        List<Goods> list=goodsDao.findById(id);
        return list;
    }

    @Override
    public List<Goods> findAll() {
        List<Goods> list=goodsDao.findAll();
        return list;
    }

}
